#ifndef H_RCGD_ETC_H
#define H_RCGD_ETC_H



#define DAC_AVE_TIME	(2)	
#define DAC_AVE_INDEX_SIZE	(40)	

typedef struct {
	double ave[DAC_AVE_INDEX_SIZE];
	unsigned int sum_cnt;
	double sum;
	double recent;
	unsigned int index;
}ave_;


extern void ave_InitValue( ave_ *p);
extern void ave_PushValue( ave_ *p,double v);


extern ave_ ave_dac ;

#endif
